package com.cmbchina.service;

import com.cmbchina.entity.Money;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * 支付案例
 */
public class PayService {
    @Autowired
    private BankService bankService;

    /**
     * 支付
     * @param money
     * @param recipientId
     */
    public void pay(Money money, Long recipientId){
        bankService.tranfer(money, recipientId);
    }
}

